package day11;

import java.io.Serializable;

/**
 * @author oldliu
 * @since 1.0
 */
public class Product implements Serializable {
    private String no;
    private String factory,name,unit;
    private int num;
    private double price;
    public Product(){

    }

    public Product(String no, String factory, String name, String unit, int num, double price) {
        this.no = no;
        this.factory = factory;
        this.name = name;
        this.unit = unit;
        this.num = num;
        this.price = price;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getFactory() {
        return factory;
    }

    public void setFactory(String factory) {
        this.factory = factory;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Product{" +
                "no='" + no + '\'' +
                ", factory='" + factory + '\'' +
                ", name='" + name + '\'' +
                ", unit='" + unit + '\'' +
                ", num=" + num +
                ", price=" + price +
                '}';
    }
}
